
#设置项目名
SET(project_name test_system)
#设置项目类型
SET(project_type exec)  
#设置目标平台
SET(project_target_platform "WIN32")

MESSAGE(STATUS "add project: name=" ${project_name} ",type=" ${project_type} ",target_platform=" ${project_target_platform})

#文件
SET(project_source_file_list
	entry.cc
)

#win32专用文件
IF(project_target_platform STREQUAL "WIN32")
ENDIF()

IF(${project_type} STREQUAL "static_lib")
	ADD_DEFINITIONS(-DBOOST_SYSTEM_STATIC_LINK)
	ADD_LIBRARY(${project_name} STATIC ${project_source_file_list})
ELSEIF(${project_type} STREQUAL "shared_lib")
	ADD_DEFINITIONS(-DBOOST_SYSTEM_DYN_LINK)
	ADD_LIBRARY(${project_name} SHARED ${project_source_file_list})
ELSE()
	ADD_EXECUTABLE(${project_name} ${project_source_file_list})
	TARGET_LINK_LIBRARIES(${project_name} boost_cm_system boost_cmake_context)
ENDIF()





